package com.daxia.bumall.web.controller;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.daxia.bumall.common.Logs;
import com.daxia.bumall.dto.GPSAddressDTO;

@Controller
@RequestMapping("test")
public class TestController extends BaseController {
	
	@ResponseBody
	@RequestMapping("testIp")
	public String test(String ip) throws Exception {
		GPSAddressDTO dto = locationService.getGPSAddressByIP(ip);
		Logs.COMMON.debug(ToStringBuilder.reflectionToString(dto));
		return null;
	}
	
}	